connect('wladmin','weblogic', 'cgappt41.qcorpaa.aa.com:7005')
edit()
startEdit()
cd('/WLDFSystemResources/Module-0/WLDFResource/Module-0/WatchNotification/Module-0')
cmo.createWatch('HeapWatch')
cd('/WLDFSystemResources/Module-0/WLDFResource/Module-0/WatchNotification/Module-0/Watches/HeapWatch')
cmo.setRuleType('Harvester')
cmo.setEnabled(true)
cmo.setRuleExpression('(${ServerRuntime//[weblogic.management.runtime.JVMRuntimeMBean]com.bea:Name=AflsAdmSer,ServerRuntime=AflsAdmSer,Type=JVMRuntime//HeapFreePercent} < 90)')
cmo.setAlarmType(None)
activate(2000)